package www.nfin.ya.super_filter_chain;


import www.nfin.ya.entity.excel.CellEntity;

import java.util.Map;

public abstract class CustomExcelShowFilter {
    public CustomExcelShowFilter(CustomExcelShowFilter next){
        this.next = next;
    }
    CustomExcelShowFilter next = null;
    public boolean execute(CellEntity cellEntity, Map rule){
        dealt(cellEntity, rule);
        if(next != null){
            next.execute(cellEntity,rule);
        }
        return true;
    }
    protected abstract boolean dealt(CellEntity cellEntity, Map rule);
}
